//
//  ZFTableViewCellLayout.m
//  ZFPlayer
//
//  Created by 紫枫 on 2018/5/22.
//  Copyright © 2018年 紫枫. All rights reserved.
//

#import "ZFTableViewCellLayout.h"
#import "NSString+Size.h"

@interface ZFTableViewCellLayout ()


@property (nonatomic, assign) BOOL isVerticalVideo;

@end

@implementation ZFTableViewCellLayout

- (instancetype)initWithData:(VideoModel *)data {
    self = [super init];
    if (self) {
        _data = data;
    }
    return self;
}

- (instancetype)initWXData:(VideoModel *)data {
    if (self) {
        _data = data;
    }
    return self;
}

- (BOOL)isVerticalVideo {
    return YES;
}

//- (CGFloat)videoHeight {
//    CGFloat videoHeight;
//    if (self.isVerticalVideo) {
//        videoHeight = [UIScreen mainScreen].bounds.size.width * 0.6 * self.data.video_height/self.data.video_width;
//    } else {
//        videoHeight = [UIScreen mainScreen].bounds.size.width * self.data.video_height/self.data.video_width;
//    }
//    return videoHeight;
//}

@end
